<div id="target">{{=form}}</div>
<script>
    jQuery(document).ready(function () {
        $("#target input:visible:enabled:first").focus();
        $("input[type='submit']").click(function () {
            ajax('{{=URL('pages','change_password')}}', '.form-horizontal', 'target');
            return false;
        });
        //$("input[type='submit']").attr('type', 'button');
        web2py_validate_entropy($('#no_table_new_password'),100);
    });
</script>